how to get query param in javascript

46

how to get query param in javascript -

const urlParams = new URLSearchParams(window.location.search);
const myParam = urlParams.get('myParam');

Comments

Submit
0 Comments